package com.queen.restaurant.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.queen.restaurant.domain.Restaurant;

@Repository
public class RestaurantDao extends BaseDao<Restaurant>{
	
	//餐厅登陆
	public List<Restaurant> findRestaurantByNameAndPasswd(String restaurantName, String password){
		String hql = "from Restaurant restaurant where restaurant.restaurantName=? and restaurant.password=?";
		return getHibernateTemplate().find(hql, restaurantName, password);
	}
}
